/*
 * pack.h
 *
 *  Created on: Sep 6, 2020
 *      Author: daniel
 */

#ifndef INC_PACK_H_
#define INC_PACK_H_

#include <stdint.h>
#include <stdbool.h>
#include "LoRA.h"
#include "data_struct.h"

uint8_t packData(const WS_DATA* data, uint8_t* buffer, uint8_t buffersize, uint8_t* no);
uint8_t packFirmwareInfo(uint8_t data, uint8_t* buffer, uint8_t buffersize, uint8_t* no);
uint8_t packFirmwareGet(uint16_t pos, uint8_t* buffer, uint8_t buffersize, uint8_t* no);
uint8_t unpackData(uint8_t* buffer, uint8_t bufferSize, uint8_t no);

#endif /* INC_PACK_H_ */
